<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-Type" content="text/html; charset=utf-8" />
    <meta name="Generator" content="editPlus">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">

    <title>内容</title>
    
	<link href="css/administrate_content.css" type="text/css" rel="stylesheet" />
	<link href="css/global.css" type="text/css" rel="stylesheet" />
	
    <script src="public_js/jquery-1.5.1.min.js"></script>
    <script src="public_js/jquery.form.js"></script>
    <script src="public_js/xheditor/xheditor-zh-cn.min.js?v=1.1.5"></script>
    
</head>
<body>
    <div class="con_whole">
        <!-- 内容导航 -->
	    <div class="con_nav">
		    <div class="nav_links">
                <a href="#">180c管理中心</a>
			    <a href="#">添加菜单</a>
			</div>
			<div class="add">
			    <span></span><a href="adminmenu-lists">菜单列表</a>
			</div>
        </div>
		<!-- 添加新商品 -->
		<div class="list_con_nav">
			<ul>
				<li><a class="m curr_menu" id="menu_1" href="#">添加菜单</a></li>
			</ul>
		</div>
			<form action="api-admin_menu_add" method="POST" class="add_use" >
			<!-- 基本信息开始 -->
				<table id="menu_1_content" cellspacing="0" cellpadding="0" width="100%" class="add_tab">
					<tbody>
						<?php if (isset($data->menu_info)) : ?>
							<input type="hidden" name="id" value="<?php echo $menu_info['id']; ?>" />
							<tr class="even">
								<td class="add_tab_tit">编号：</td>
								<td>
									<?php echo $data->menu_info['id']; ?>
								</td>
							</tr>
						<?php endif; ?>
						
						<tr class="even">
							<td class="add_tab_tit">名称:</td>
							<td>
								<input size="20" id="name" type="text" name="name" value="<?php echo $menu_info['name']; ?>" class="is_text" />
								<font>*</font>
							</td>
						</tr>
						
						<tr class="base">
							<td class="add_tab_tit">上级菜单:</td>
							<td>
								<select name="parent_id">
									<option value="0">顶级菜单</option>
									<?php foreach($data->menu_list AS $menu) : ?>
								
										<?php if (isset($data->menu_info) && $data->menu_info['parent_id'] == $menu['id']) : ?>
											<option value="<?php echo $menu['id']; ?>" selected="selected"><?php echo $menu['name']; ?></option>
										<?php else: ?>
											<option value="<?php echo $menu['id']; ?>"><?php echo $menu['name']; ?></option>
										<?php endif; ?>
									<?php endforeach; ?>
								</select>
							</td>
						</tr>
						<tr class="even">
							<td class="add_tab_tit">菜单地址：</td>
							<td>
								<input size="20" type="text" name="filename" value="<?php echo $data->menu_info['filename']; ?>" class="is_text" />
								<font>*</font>
							</td>
						</tr>
						<tr class="even">
							<td class="add_tab_tit">排序:</td>
							<td>
								<input size="20" type="text" name="sort" value="<?php echo $data->menu_info['sort']; ?>" class="is_text" />
								<font>*</font>
							</td>
						</tr>

						<!-- 提交 -->
						<tr id="putin" class="even">
							<td colspan="2">
								<input type="submit" name="put_in" class="button" value="确定" />
							</td>
						</tr>
						<!-- 提交 end-->
					</tbody>
				</table>
			
			</form>

	   <div class="footer">
	       <p>共执行 4 个查询，用时 0.016487 秒，Gzip 已禁用，内存占用 2.641 MB<br />
           版权所有 © 2005-2008 上海商派网络科技有限公司，并保留所有权利。
           </p>
	   </div>
	</div>
</body>
</html>